// src/main/java/jsu/hx/lost/Service/StatService.java
package jsu.hx.lost.Service;

import jsu.hx.lost.Mapper.StatMapper;
import jsu.hx.lost.Model.dto.StatData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class StatService {
    @Autowired
    private StatMapper statMapper;

    public List<StatData> getDailyStats(String startDate, String endDate) {
        return statMapper.selectDailyStats(startDate, endDate);
    }
}